import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Home',
    label: '首页',
    component: () => import(/* webpackChunkName: "Home" */ '../views/Home.vue'),
    icon: require('../assets/imgs/menu-1.png')
  },
  {
    path: '/Hdgl',
    name: 'Hdgl',
    label: '活动管理',
    component: () => import(/* webpackChunkName: "Index" */ '../views/Index.vue'),
    icon: require('../assets/imgs/menu-2.png'),
    redirect: '/Hdgl/Slhd',
    children: [
      {
        path: 'Slhd',
        name: 'Slhd',
        label: '审理活动',
        component: () => import(/* webpackChunkName: "Slhd" */ '../views/Hdgl/Slhd.vue')
      },
      {
        path: 'Abfa',
        name: 'Abfa',
        label: '安保方案',
        component: () => import(/* webpackChunkName: "Abfa" */ '../views/Hdgl/Abfa.vue')
      },
      {
        path: 'Rybs',
        name: 'Rybs',
        label: '人员背审',
        component: () => import(/* webpackChunkName: "Rybs" */ '../views/Hdgl/Rybs.vue')
      },
      {
        path: 'Hdda',
        name: 'Hdda',
        label: '活动档案',
        component: () => import(/* webpackChunkName: "Hdda" */ '../views/Hdgl/Hdda.vue')
      }
    ]
  },
  {
    path: '/Tsgz',
    name: 'Tsgz',
    label: '态势感知',
    component: () => import(/* webpackChunkName: "Index" */ '../views/Index.vue'),
    icon: require('../assets/imgs/menu-3.png'),
    redirect: '/Tsgz/Tsgzi',
    children: [
      {
        path: 'Tsgzi',
        name: 'Tsgzi',
        label: '态势感知',
        component: () => import(/* webpackChunkName: "Tsgzi" */ '../views/Tsgz/Tsgzi.vue')
      },
      {
        path: 'Zgtjbb',
        name: 'Zgtjbb',
        label: '战果统计报表',
        component: () => import(/* webpackChunkName: "Zgtjbb" */ '../views/Tsgz/Zgtjbb.vue')
      }
    ]
  },
  {
    path: '/Jqxx',
    name: 'Jqxx',
    label: '警情信息',
    component: () => import(/* webpackChunkName: "Index" */ '../views/Index.vue'),
    icon: require('../assets/imgs/menu-3.png'),
    redirect: '/Jqxx/Jqxx',
    children: [
      {
        path: 'Jqxx',
        name: 'Jqxx',
        label: '警情数据',
        component: () => import(/* webpackChunkName: "Jqxx" */ '../views/Jqxx/Jqxx.vue')
      }
    ]
  },
  {
    path: '/Hdxx',
    name: 'Hdxx',
    label: '活动信息',
    component: () => import(/* webpackChunkName: "Index" */ '../views/Index.vue'),
    icon: require('../assets/imgs/menu-3.png'),
    redirect: '/hdxx/jbxx',
    children: [

      {
        path: 'jbxx',
        name: 'jbxx',
        label: '活动信息',
        component: () => import(/* webpackChunkName: "Jqxx" */ '../views/hdxx/jbxx.vue')
      },
      {
        path: 'zgxx',
        name: 'zgxx',
        label: '活动战果',
        component: () => import(/* webpackChunkName: "Jqxx" */ '../views/hdxx/zgxx.vue')
      },
      {
        path: 'bagsjbxx',
        name: 'bagsjbxx',
        label: '保安公司',
        component: () => import(/* webpackChunkName: "Jqxx" */ '../views/hdxx/bagsjbxx.vue')
      },
      {
        path: 'cgdaxx',
        name: 'cgdaxx',
        label: '场馆档案',
        component: () => import(/* webpackChunkName: "Jqxx" */ '../views/hdxx/cgdaxx.vue')
      }
    ]
  },
  {
    path: '/Abxx',
    name: 'Abxx',
    label: '安保信息',
    component: () => import(/* webpackChunkName: "Index" */ '../views/Index.vue'),
    icon: require('../assets/imgs/menu-3.png'),
    redirect: '/abxx/abrwjbxx',
    children: [

      {
        path: 'abrwjbxx',
        name: 'abrwjbxx',
        label: '安保任务',
        component: () => import(/* webpackChunkName: "Jqxx" */ '../views/abxx/abrwjbxx.vue')
      },
      {
        path: 'yjclyajbxx',
        name: 'yjclyajbxx',
        label: '应急处置预案',
        component: () => import(/* webpackChunkName: "Jqxx" */ '../views/abxx/yjclyajbxx.vue')
      },
      {
        path: 'ablxxx',
        name: 'ablxxx',
        label: '安保路线',
        component: () => import(/* webpackChunkName: "Jqxx" */ '../views/abxx/ablxxx.vue')
      },
      {
        path: 'ablxgjxx',
        name: 'ablxgjxx',
        label: '安保路线轨迹',
        component: () => import(/* webpackChunkName: "Jqxx" */ '../views/abxx/ablxgjxx.vue')
      }
    ]
  },
  {
    path: '/Rygk',
    name: 'Rygk',
    label: '人员管控信息',
    component: () => import(/* webpackChunkName: "Index" */ '../views/Index.vue'),
    icon: require('../assets/imgs/menu-3.png'),
    redirect: '/rygk/zdrysmzdtxx',
    children: [

      {
        path: 'zdrysmzdtxx',
        name: 'zdrysmzdtxx',
        label: '重点人员实名制动态信息',
        component: () => import(/* webpackChunkName: "Jqxx" */ '../views/rygk/zdrysmzdtxx.vue')
      },
      {
        path: 'rysmzdtxx',
        name: 'rysmzdtxx',
        label: '人员实名制动态信息',
        component: () => import(/* webpackChunkName: "Jqxx" */ '../views/rygk/rysmzdtxx.vue')
      }
    ]
  },
  {
    path: '/Clts',
    name: 'Clts',
    label: '车辆态势',
    component: () => import(/* webpackChunkName: "Index" */ '../views/Index.vue'),
    icon: require('../assets/imgs/menu-3.png'),
    redirect: '/rygk/zdrysmzdtxx',
    children: [

      {
        path: 'zdcltj',
        name: 'zdcltj',
        label: '重点车辆统计',
        component: () => import(/* webpackChunkName: "Jqxx" */ '../views/clts/zdcltj.vue')
      },
      {
        path: 'shcl',
        name: 'shcl',
        label: '涉会车辆',
        component: () => import(/* webpackChunkName: "Jqxx" */ '../views/clts/shcl.vue')
      },
      {
        path: 'wbcl',
        name: 'wbcl',
        label: '危爆车辆',
        component: () => import(/* webpackChunkName: "Jqxx" */ '../views/clts/wbcl.vue')
      },
      {
        path: 'zdrcl',
        name: 'zdrcl',
        label: '重点人车辆',
        component: () => import(/* webpackChunkName: "Jqxx" */ '../views/clts/zdrcl.vue')
      },
      {
        path: 'tpcl',
        name: 'tpcl',
        label: '套牌车辆',
        component: () => import(/* webpackChunkName: "Jqxx" */ '../views/clts/tpcl.vue')
      },
      {
        path: 'dqc',
        name: 'dqc',
        label: '盗抢车',
        component: () => import(/* webpackChunkName: "Jqxx" */ '../views/clts/dqc.vue')
      },
      {
        path: 'jcjbsj',
        name: 'jcjbsj',
        label: '警车基本数据',
        component: () => import(/* webpackChunkName: "Jqxx" */ '../views/clts/jcjbsj.vue')
      },
      {
        path: 'zdclwz',
        name: 'zdclwz',
        label: '重点车辆位置',
        component: () => import(/* webpackChunkName: "Jqxx" */ '../views/clts/zdclwz.vue')
      },
      {
        path: 'jtlksj',
        name: 'jtlksj',
        label: '交通路况数据',
        component: () => import(/* webpackChunkName: "Jqxx" */ '../views/clts/jtlksj.vue')
      }, {
        path: 'tccxx',
        name: 'tccxx',
        label: '停车场信息',
        component: () => import(/* webpackChunkName: "Jqxx" */ '../views/clts/tccxx.vue')
      }
    ]
  },
  {
    path: '/Fsp',
    name: 'Fsp',
    label: '发售票',
    component: () => import(/* webpackChunkName: "Index" */ '../views/Index.vue'),
    icon: require('../assets/imgs/menu-3.png'),
    redirect: '/rygk/zdrysmzdtxx',
    children: [

      {
        path: 'fspxx',
        name: 'fspxx',
        label: '发售票信息',
        component: () => import(/* webpackChunkName: "Jqxx" */ '../views/fsp/fspxx.vue')
      },
      {
        path: 'zzxx',
        name: 'zzxx',
        label: '制证信息',
        component: () => import(/* webpackChunkName: "Jqxx" */ '../views/fsp/zzxx.vue')
      }
    ]
  },
  {
    path: '/Qbybxx',
    name: 'Qbybxx',
    label: '情报研判信息',
    component: () => import(/* webpackChunkName: "Index" */ '../views/Index.vue'),
    icon: require('../assets/imgs/menu-3.png'),
    redirect: '/rygk/zdrysmzdtxx',
    children: [

      {
        path: 'qbybxx',
        name: 'qbybxx',
        label: '情报研判信息',
        component: () => import(/* webpackChunkName: "Jqxx" */ '../views/qbybxx/qbybxx.vue')
      }
    ]
  },
  {
    path: '/Spsbxx',
    name: 'Spsbxx',
    label: '视频设备信息',
    component: () => import(/* webpackChunkName: "Index" */ '../views/Index.vue'),
    icon: require('../assets/imgs/menu-3.png'),
    redirect: '/rygk/zdrysmzdtxx',
    children: [

      {
        path: 'spsbxx',
        name: 'spsbxx',
        label: '视频设备信息',
        component: () => import(/* webpackChunkName: "Jqxx" */ '../views/spsbxx/spsbxx.vue')
      }
    ]
  },
  {
    path: '/Dxmgkxx',
    name: 'Dxmgkxx',
    label: '低慢小管控',
    component: () => import(/* webpackChunkName: "Index" */ '../views/Index.vue'),
    icon: require('../assets/imgs/menu-3.png'),
    redirect: '/dxmgkxx/dxmgkxx',
    children: [

      {
        path: 'dxmgkxx',
        name: 'dxmgkxx',
        label: '低慢小管控',
        component: () => import(/* webpackChunkName: "Jqxx" */ '../views/dxmgkxx/dxmgkxx.vue')
      }
    ]
  },
  {
    path: '/Ryds',
    name: 'Ryds',
    label: '人员态势',
    component: () => import(/* webpackChunkName: "Index" */ '../views/Index.vue'),
    icon: require('../assets/imgs/menu-3.png'),
    redirect: '/dxmgkxx/dxmgkxx',
    children: [

      {
        path: 'chry',
        name: 'chry',
        label: '参会人员',
        component: () => import(/* webpackChunkName: "Jqxx" */ '../views/ryts/chry.vue')
      },
      {
        path: 'rybs',
        name: 'rybs',
        label: '人员背审',
        component: () => import(/* webpackChunkName: "Jqxx" */ '../views/ryts/rybs.vue')
      },
      {
        path: 'abrysj',
        name: 'abrysj',
        label: '安保人员数据',
        component: () => import(/* webpackChunkName: "Jqxx" */ '../views/ryts/abrysj.vue')
      },
      {
        path: 'mjsj',
        name: 'mjsj',
        label: '民警数据',
        component: () => import(/* webpackChunkName: "Jqxx" */ '../views/ryts/mjsj.vue')
      },
      {
        path: 'zdry',
        name: 'zdry',
        label: '重点人员',
        component: () => import(/* webpackChunkName: "Jqxx" */ '../views/ryts/zdry.vue')
      }
    ]
  }
]

const router = new VueRouter({
  routes
})

const originalPush = VueRouter.prototype.push
VueRouter.prototype.push = function push (location) {
  return originalPush.call(this, location).catch(err => err)
}

export default router
